package com.tx.zlm_replay.common;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author tx
 * @version 1.0
 * @date 2024/3/18 11:21
 * @description: 返回结结果对象
 */
public class R implements Serializable {
    @Serial
    private static final long serialVersionUID = -3577512282617380940L;
    private String code;
    private String message;

    public R(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public R() {
    }

    public String getCode() {
        return code;
    }

    public R setCode(String code) {
        this.code = code;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public R setMessage(String message) {
        this.message = message;
        return this;
    }

    @Override
    public String toString() {
        return
                "code: \'" + code +  "\'," +
                "message: \'" + message +"\'"
                ;
    }
}
